package com.kingmed.kmss.admin.modules.ums.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.kingmed.kmss.admin.modules.ums.mapper.UmsRoleResourceRelationMapper;
import com.kingmed.kmss.admin.modules.ums.model.UmsRoleResourceRelation;
import com.kingmed.kmss.admin.modules.ums.service.UmsRoleResourceRelationService;

import org.springframework.stereotype.Service;

/**
 * <p>
 * 后台角色资源关系表 服务实现类
 * </p>
 *
 * 
 * 
 */
@Service
public class UmsRoleResourceRelationServiceImpl extends ServiceImpl<UmsRoleResourceRelationMapper, UmsRoleResourceRelation> implements UmsRoleResourceRelationService {

    @Override
    public void deleteByRoleId(Long roleId) {
        QueryWrapper<UmsRoleResourceRelation> wrapper = new QueryWrapper<>();
        wrapper.lambda().eq(UmsRoleResourceRelation::getRoleId, roleId);
        super.remove(wrapper);
    }
}
